package com.rico.kok.mapper;

import com.rico.kok.entity.Comment;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CommentMapper {
    //添加评论
    int insertComment(Comment comment);
    //删除评论(逻辑删除)
    int deleteComment(Comment comment);
    //更新评论
    int updateComment(Comment comment);
    //查找评论
    List<Comment> selectComments(Comment comment);
    //通过点赞量查找
    List<Comment> selectCommentsByLike(@Param("from") Integer from,@Param("to") Integer to);
}
